package com.bestescortbedsystem.dao;

import com.bestescortbedsystem.entity.SesAddress;
import com.bestescortbedsystem.entity.SesAddressExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author guanzepeng
 */
public interface SesAddressDao {
    long countByExample(SesAddressExample example);

    int deleteByExample(SesAddressExample example);

    int deleteByPrimaryKey(Long addressid);

    int insert(SesAddress record);

    int insertSelective(SesAddress record);

    List<SesAddress> selectByExample(SesAddressExample example);

    SesAddress selectByPrimaryKey(Long addressid);

    int updateByExampleSelective(@Param("record") SesAddress record, @Param("example") SesAddressExample example);

    int updateByExample(@Param("record") SesAddress record, @Param("example") SesAddressExample example);

    int updateByPrimaryKeySelective(SesAddress record);

    int updateByPrimaryKey(SesAddress record);

    /**
     * 查询省
     * @return 返回lis
     */
    List<SesAddress> findProvince();


    /**
     * 查询市
     * @param id 传入id
     * @return 返回List
     */
    List<SesAddress> findCity(@Param("id") int id);

    /**
     * 查询县区
     * @param id 传入id
     * @return 返回List
     */
    List<SesAddress> findCounty(@Param("id") int id);
}
